package ooday03;

public class SwimTest {
    public static void main(String[] args) {
        Dog dog=new Dog("黑",2,"小黑");
        dog.swim();//Swim接口的
        dog.eat();//Dog重写的
        dog.drin();//复用Animal的
        dog.look();//Dog独有的
        System.out.println();
        Chick chick=new Chick("黄",1,"啊黄");
        chick.drin();//复用Anumal的
        chick.eat();//Chick重写
        chick.layEss();//Chick重写
        System.out.println();
        Fish fish=new Fish("红",2,"啊红");
        fish.eat();//Fish重写的
        fish.drin();//复用Anumal的
        fish.swim();//Fish重写的

    }
}
